package com.lk.oauth2.web.controller;

import java.util.List;

import com.lk.base.result.Result;
import org.assertj.core.util.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @description:
 * @author: Li Kang
 * @create: 2020-09-04 09:52
 */
@RestController
@RequestMapping("/product")
public class ProductController {

  private static final Logger logger = LoggerFactory.getLogger(ProductController.class);

  ///  @PreAuthorize("hasAnyAuthority('user:list')")
  @GetMapping("/list")
  public Result list() {
    List<String> list = Lists.newArrayList();
    list.add("眼镜");
    list.add("电脑");
    list.add("键盘");
    return Result.ok(list);
  }
}
